<h1><%=h APP_NAME %> - Ksh&ecirc;ma</h1>
<h2><%=h @page_title = 'Log In'%></h2>
<img border="0" src="/images/ay.jpg" alt="ingresar"/>
<% form_tag do -%>
	<%=  error_messages_for 'user' %>
	<%if session[:timeout_msg]%><div class="flash_error"><%=  session[:timeout_msg] %></div><%end%>
	<%if flash[:notice] %><div class="flash_notice"><%=  flash[:notice] %></div><%end%>
	<%if flash[:success] %><div class="flash_success"><%=  flash[:success] %></div><%end%>
	<%if flash[:error]%><div class="flash_error"><%=  flash[:error] %></div><%end%>
	<noscript><span style="color:red">No tiene javascript habilitado. Esta aplicaci&oacute;n lo requiere para su funcionamiento.</span></noscript>
	<div style="display:none" id='formulario'>
	</div>
	<script language='javascript'>
		<%= update_page do |page| 
			page.insert_html(:top, 'formulario', :partial => 'login_form' )
		end %>
	</script>
	<p><img border="0" src="/images/kshema-def-negro.png" alt="ingresar"/></p>
<% end -%>
